package com.mengsenlin.mapper;

import com.mengsenlin.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/7/15.
 */
@Component("userMapper")
public interface UserMapper {
    User selectUserByuserNameAndPassword(@Param("userName") String userName, @Param("password") String password);
    User selectUserByuserName(@Param("userName")String userName);
    int insertUser(@Param("userName")String userName,@Param("password")String password,
                   @Param("phoneNum")String phoneNum);
    int updateUserById(@Param("userName")String userName,@Param("password")String password,
                       @Param("phoneNum")String phoneNum,@Param("userId") long userId);
    int deleteUser(@Param("userName")String userName);
}